import $api from './sever';


//添加管理员
export const addAdmin =async (data)=>{
      let res =await $api.post ('/admin/add',data) 
      return res.data;

}

//管理员登陆
export const LoginAdmin =async (data)=>{
    let res =await $api.post ('/admin/login',data) 
    return res.data;

}
